<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "charge".
 *
 * @property int $id
 * @property int $storeId
 * @property string $picture
 * @property int $ctime
 */
class Charge extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'charge';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['storeId', 'picture', 'ctime'], 'required'],
            [['storeId', 'ctime'], 'integer'],
            [['picture'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'storeId' => 'Store ID',
            'picture' => 'Picture',
            'ctime' => 'Ctime',
        ];
    }
}
